// pages/one/one.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    shuju:null,
    zuixin:null,
  },
  onLoad() {


this.huoqu()

  },
 
  huoqu(){
    //编辑音乐 
    wx.request({
      url: 'http://localhost:3000/top/playlist/highquality?limit=6',
      method: "GET",
      success: (result :any) => {
          console.log(result.data.playlists)
          this.setData({
           shuju:result.data.playlists
           
          })
      },
    }),
    //最新音乐
    wx.request({
      url: 'http://localhost:3000/personalized/newsong',
      method: "GET",
      success: (result :any) => {
          // console.log(result.data.result)
          this.setData({
            zuixin:result.data.result
          })
      },
    })
  }


   
})